
package org.soekrat.engine.pitbul.parser;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTree;

import org.soekrat.engine.forest.Forest;
import org.soekrat.gui.swing.forest.ForestTreeModel;

@SuppressWarnings("serial")
public class SimpleForestTreePanel extends JPanel 
{
  private JTree m_tree;
  
  private ForestTreeModel m_model;
  
  /**
   * <p>
   *   Constructor.
   * </p>
   */
  public SimpleForestTreePanel(Forest forest)
  {
    m_model=new ForestTreeModel(forest);
    m_tree=new JTree(m_model);
    
    setLayout(new BorderLayout());
    add(new JScrollPane(m_tree), BorderLayout.CENTER);
    
    m_tree.setRootVisible(false);
  }
  
  
}
